using Microsoft.Extensions.Logging;
using Vin.Tool.Attributes;

namespace Vin.Extension.LoggerNotify.Options;

[Option("Logging:Notify")]
public class NotifyOption
{
    /// <summary>
    /// 启用的日志级别
    /// </summary>
    public List<LogLevel> EnableLevels { get; set; } = new();

    /// <summary>
    /// 标题匹配正则
    /// </summary>
    public string TitleRegex { get; set; } = @"【(.*?)】";

    /// <summary>
    /// 标题最大长度
    /// </summary>
    public int TitleLength { get; set; } = 15;
}